package org.imooc.plant;

import org.imooc.component.Arms;
import org.imooc.component.Hair;

public class Bean implements Plant{

    private Hair hair;

    private Arms arms;

//    public Bean() {
//        Hair hair = new Hair();
//        hair.setColor("绿色");
//        this.hair = hair;
//        Arms arms = new Arms();
//        arms.setBulletType("普通的豆子");
//        this.arms = arms;
//    }

    public String getName() {
        return "绿逗";
    }

    public void fight() {
        System.out.println("发射一颗豆子");
    }

    public Hair getHair() {
        return hair;
    }

    public void setHair(Hair hair) {
        this.hair = hair;
    }

    public Arms getArms() {
        return arms;
    }

    public void setArms(Arms arms) {
        this.arms = arms;
    }
}
